package com.lanzuo.adapter.common.constant;

public interface CommandConstant {

    /**
     * 注册
     */
    String REGISTER_TEMPLATE = "{\n" +
            "        \"Data\": {\n" +
            "            \"FirewareInfo\": \"\",\n" +
            "            \"HwInfo\": \"\",\n" +
            "            \"InstallationDate\": \"\",\n" +
            "            \"IpAddr\": \"{}\",\n" + // 设备ip
            "            \"MacAddr\": \"\",\n" +
            "            \"ManufactureDate\": \"\",\n" +
            "            \"OSInfo\": \"\",\n" +
            "            \"SN\": \"{}\"\n" + // 设备唯一码
            "        },\n" +
            "        \"Header\": {\n" +
            "            \"CommandType\": \"Regist\",\n" +
            "            \"SessionID\": \"{}\"\n" + // seesionId
            "        }\n" +
            "    }";

    /**
     * ping
     */
    String PING_TEMPLATE = "{\"Header\": {\n" +
            "            \"CommandType\": \"Ping\",\n" +
            "            \"MachineCode\": \"{}\",\n" + // 设备编号
            "            \"SessionID\": \"{}\"\n" +
            "        }\n" +
            "    }";

    /**
     * 换线结果上报
     */
    String CHANGEOVER_REPORT_TEMPLATE = "{\n" +
            "    \"Header\": {\n" +
            "        \"CommandType\": \"RecipeReportState\",\n" +
            "        \"SessionID\": \"{}\",\n" +
            "        \"MachineCode\": \"{}\"\n" + // 设备编号
            "    },\n" +
            "    \"Data\": {\n" +
            "        \"Source\": \"panaAdapter\",\n" + // 轨道
            "        \"Lane\": {},\n" + // 轨道
            "        \"RecipeName\": \"{}\",\n" + // 当前程序名称
            "        \"ReturnCode\": 0,\n" +
            "        \"Message\": \"\"\n" +
            "    }\n" +
            "}";
}
